import request from '@/utils/request'

// 查询物功能列表
export function listThingFunction(query) {
  return request({
    url: '/equipment/thingFunction/list',
    method: 'get',
    params: query
  })
}

// 查询物功能详细
export function getThingFunction(id) {
  return request({
    url: '/equipment/thingFunction/' + id,
    method: 'get'
  })
}

// 新增物功能
export function addThingFunction(data) {
  return request({
    url: '/equipment/thingFunction',
    method: 'post',
    data: data
  })
}

// 修改物功能
export function updateThingFunction(data) {
  return request({
    url: '/equipment/thingFunction',
    method: 'put',
    data: data
  })
}

// 删除物功能
export function delThingFunction(id) {
  return request({
    url: '/equipment/thingFunction/' + id,
    method: 'delete'
  })
}
